<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Profile extends CI_Controller {
	
	public function __construct(){
		parent::__construct ();
		if(!$this->session->userdata('loggedin')) redirect('main', 'refresh');
	}
	
	public function index()
	{
		$this->lang->load('site', get_lang());
		$data['page'] = 'pages/profile';
		$this->load->view('mainview', $data);
	}
	
	
	
}

?>